package com.corpgovernment.common.feignRpc;

import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.common.dto.EmployeeOpenCardReq;
import com.corpgovernment.common.dto.GetEmployeeOpenCardReq;
import com.corpgovernment.common.dto.GetEmployeeOpenCardRsp;
import com.corpgovernment.common.dto.SupplierCompanyDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@FeignClient(name = "organization-manage-server", qualifier = "commonOrganizationClient", fallback = CommonOrganizationClientFallBack.class)
public interface CommonOrganizationClient {

    @PostMapping("/ctripAccount/getEmployeeOpenCardInfo")
    JSONResult<GetEmployeeOpenCardRsp> getEmployeeOpenCardInfo(@RequestBody GetEmployeeOpenCardReq request);

    @PostMapping("/ctripAccount/employeeOpenCard")
    JSONResult employeeOpenCard(@RequestBody EmployeeOpenCardReq request);

    @RequestMapping("/supplierCompany/getSupplierCompanySoa")
    JSONResult<List<SupplierCompanyDto>> getSupplierCompanySoa();
}